﻿/**
* CRL
*/
using System;
using System.Collections.Generic;
using System.Text;
using CRL.Mongo;
using CRL;
using CRL.Sharding;
using CRL.DBAccess;
using CRL.Attribute;
using CRL.LambdaQuery.CRLExpression;
using CRL.LambdaQuery;

namespace MongoTest
{
    class ConfigInit
    {
        public static string connectionString= "mongodb://127.0.0.1:27017/admin";
        public static void Init()
        {
            var builder = DBConfigRegister.GetInstance();
            builder.UseMongoDB();
            
            builder.RegisterDBAccessBuild(dbLocation =>
            {
                return new DBAccessBuild(DBType.MongoDB, connectionString);
            });
            
        }
    }
}
